var mysql = require("./db");

function Person(){

}

Person.getAll = function() {
  return new Promise(function (resolve,reject) {
    mysql.query('select*from person', function (err, rows) {
      resolve(rows);
    })
  })
};

module.exports = Person;